package com.dss.auto_deploy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dss.auto_deploy.domain.AdmProject;
import com.dss.auto_deploy.vo.AdmProjectVo;
import com.dss.auto_deploy.dto.AdmProjectAddDto;
import com.dss.auto_deploy.dto.AdmProjectPageDto;
import com.dss.auto_deploy.dto.AdmProjectUpdateDto;

import java.util.List;

/**
* @Description:开发项目Service
* @author dongshoushan
* @date 2022-09-22 14:39:06
*/
public interface IAdmProjectService  extends IService<AdmProject> {
    /**
    * 新增开发项目
    * @param admProjectAddDto
    * @return
    */
    int insert(AdmProjectAddDto admProjectAddDto);

    /**
    * 修改开发项目
    * @param admProjectUpdateDto
    * @return
    */
    int update(AdmProjectUpdateDto admProjectUpdateDto);

    /**
    * 批量删除开发项目
    * @param ids
    * @return
    */
    void deleteBatch(Long[] ids);

    /**
    * 开发项目查询
    * @param dto
    * @return List<AdmProject>
    */
    Page<AdmProjectVo> list(AdmProjectPageDto dto);

    List<AdmProjectVo> convertToVo(List<AdmProject> records);

    List<AdmProjectVo> getAll(String name);
    List<AdmProject> getAll();
}
